<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>导航栏</title>
    <link rel="stylesheet" href="../layui/css/layui.css">
    <script src="../layui/layui.js"></script>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">layui 悦动工作室</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="../tupian/bg1.jpg" class="layui-nav-img">
                    闻少
                </a>

                  <li class="layui-nav-item"><a href="">控制台</a></li>
            <li class="layui-nav-item"><a href="">商品管理</a></li>
            <li class="layui-nav-item"><a href="javascript:;">用户</a>
            <dl class="layui-nav-child">
                <dd><a href="">登入</a></dd>
                <dd><a href="">退出</a></dd>
            </dl></li>

            <li class="layui-nav-item">
                <a href="javascript:;">其它系统</a>
                <dl class="layui-nav-child">
                    <dd><a href="">邮件管理</a></dd>
                    <dd><a href="">消息管理</a></dd>
                    <dd><a href="">授权管理</a></dd>
                </dl>
            </li>
        </ul>
    </div>

        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
    <ul class="layui-nav layui-nav-tree site-demo-nav layui-bg-black">

    <li class="layui-nav-item layui-nav-itemed">
        <a class="javascript:;" href="javascript:;">开发工具</a>
        <dl class="layui-nav-child">
            <dd>
                <a href="">调试预览</a>
            </dd>
        </dl>
    </li>

    <li class="layui-nav-item layui-nav-itemed">
        <a class="javascript:;" href="javascript:;">布局</a>
        <dl class="layui-nav-child">
            <dd class="">
                <a href="">栅格</a>
            </dd>
            <dd class="">
                <a href="">后台布局</a>
            </dd>
        </dl>
    </li>

    <li class="layui-nav-item layui-nav-itemed">
        <a class="javascript:;" href="javascript:;">基本元素</a>
        <dl class="layui-nav-child">
            <dd class="">
                <a href="">按钮</a>
            </dd>
            <dd class="">
                <a href="">表单</a>
            </dd>
            <dd class="">
                <a href="">导航/面包屑</a>
            </dd>
            <dd class="">
                <a href="">选项卡</a>
            </dd>
            <dd class="">
                <a href="">进度条<span class="layui-badge-dot layui-bg-red"></span></a>
            </dd>
            <dd class="">
                <a href="">面板</a>
            </dd>
            <dd class="">
                <a href="">徽章</a>
            </dd>
            <dd class="">
                <a href="">时间线</a>
            </dd>
            <dd class="">
                <a href="">静态表格</a>
            </dd>
            <dd class="">
                <a href="">动画</a>
            </dd>
            <dd class="">
                <a href="">辅助元素</a>
            </dd>
        </dl>
    </li>

    <li class="layui-nav-item layui-nav-itemed">
        <a class="javascript:;" href="javascript:;">
            <i class="layui-icon" style="font-size: 15px; color: blue;">&#xe68e;</i>组件示例</a>
        <dl class="layui-nav-child">
            <dd class="">
                <a href="">
                    <i class="layui-icon" style="font-size: 15px; color: green;">&#xe60c;</i>弹出层
                </a>
            </dd>
            <dd class="">
                <a href="">
                    <i class="layui-icon" style="font-size: 15px; color: red;">&#xe658;</i>日期与时间选择
                </a>
            </dd>
            <dd class="">
                <a href="">
                    即时通讯
                </a>
            </dd>
            <dd class="">
                <a href="">
                    数据表格
                </a>
            </dd>
            <dd class="">
                <a href="">
                    分页
                </a>
            </dd>
            <dd class="">
                <a href="">
                    文件上传
                </a>
            </dd>
            <dd class="">
                <a href="">
                    轮播
                </a>
            </dd>
            <dd class="">
                <a href="">
                    模板引擎
                </a>
            </dd>

            <dd class="">
                <a href="">
                    流加载
                </a>
            </dd>
            <dd class="">
                <a href="">
                    工具集
                </a>
            </dd>
            <dd class="">
                <a href="">
                    代码修饰器
                </a>
            </dd>
        </dl>
    </li>

    <li class="layui-nav-item" style="height: 30px; text-align:center"><dd class=""><a href="">结束</a></dd></li>
</ul>
            </div>
        </div>

                    <div class="layui-tab-content">
                        <div class="layui-tab-item layui-show"></div>
                        <div class="layui-tab-item"></div>
                        <div class="layui-tab-item"></div>
                    </div>
    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;">内容主体区域</div>
    </div>



                <div class="layui-footer layui-bg-orange">
                    <!-- 底部固定区域 -->
                    © layui.com - 悦动工作室
                </div>
            </div>
</div>


<script>
    layui.use('element', function(){
        var element = layui.element; //导航的hover效果、二级菜单等功能，需要依赖element模块

        //监听导航点击
        element.on('nav(demo)', function(elem){
            //console.log(elem)
            layer.msg(elem.text());
        });
    });
</script>
</body>
</html>
